local skel = fk.CreateSkill {
  name = "emo__leihuosh",
  tags = {Skill.Compulsory},
}

skel:addEffect(fk.DamageInflicted, {
  anim_type = "defensive",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and data.from and data.from:getMark("@emo__leihuo") > 0
  end,
  on_use = function (self, event, target, player, data)
    player.room:removePlayerMark(data.from, "@emo__leihuo")
    data:preventDamage()
  end,
})

skel:addEffect(fk.Damaged, {
  anim_type = "offensive",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and data.from
    and data.from ~= player and data.from:getMark("@emo__leihuo") == 0 and not data.from.dead
  end,
  on_use = function (self, event, target, player, data)
    player.room:damage { from = player, to = data.from, damage = 1, skillName = skel.name }
  end,
})


Fk:loadTranslationTable{
  ["emo__leihuosh"] = "雷火守护",
  [":emo__leihuosh"] = "锁定技，你受到拥有雷火标记的角色的伤害时，移除其1枚标记，防止之；你受到没有雷火标记的其他角色的伤害后，你对其造成一点伤害。",

  ["$emo__leihuosh1"] = "雷火之心怎么失灵了……？",
}


return skel
